<?php
/**
 * Created by PhpStorm.
 * User: cc
 * Date: 2023/12/12
 * Time: 16:12
 */

namespace app\zyhsapi\model;

use think\Log;

class ZyhsOrdersRefund extends BaseCacheZyhs
{
    protected $table = 'good_wechat.zyhs_orders_refund';

    public function SaveData($data)
    {
        try
        {
            $oid = $this->insertGetId($data);
        }
        catch (\Exception $e)
        {
            Log::write('订单退款入库失败：'. $e->getMessage(). '【'. $e->getFile(). $e->getLine(). '】', 'error', true);
            return false;
        }
        return $oid;
    }
}
